package com.mate.cloud.inventory.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 订单消息实体，与生产者端保持一致
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2025/7/28 21:29
 * @updateUser: MI
 * @updateTime: 2025/7/28 21:29
 * @updateRemark: 修改内容
 * @version: 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderMessage implements Serializable {

    private String orderId;         // 订单ID

    private String productId;       // 产品ID

    private Integer quantity;       // 数量

    private String userId;          // 用户ID

    private Long timestamp;         // 消息发送时间戳
}
